package com.cpecc.model.wuzi;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name = "DATA_CaiGou_HeTong")
public class HeTong implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 8887081910601093248L;

	@Id
	@GeneratedValue(generator = "system-uuid")
	@GenericGenerator(name = "system-uuid", strategy = "uuid")
	@Column(length = 32)
	private String id;
	
	@ManyToOne
	@JoinColumn(name="CAIGOU_ID")
	private CaiGou caiGou;
	
	@Column(length=32)
	private String xiangDuiLJ;
	
	@Column(length=64)
	private String ysWJM;
	
	@Column(length=30)
	private String wenJianM;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public CaiGou getCaiGou() {
		return caiGou;
	}

	public void setCaiGou(CaiGou caiGou) {
		this.caiGou = caiGou;
	}

	public String getXiangDuiLJ() {
		return xiangDuiLJ;
	}

	public void setXiangDuiLJ(String xiangDuiLJ) {
		this.xiangDuiLJ = xiangDuiLJ;
	}

	public String getYsWJM() {
		return ysWJM;
	}

	public void setYsWJM(String ysWJM) {
		this.ysWJM = ysWJM;
	}

	public String getWenJianM() {
		return wenJianM;
	}

	public void setWenJianM(String wenJianM) {
		this.wenJianM = wenJianM;
	}

	public HeTong(String id, CaiGou caiGou, String xiangDuiLJ, String ysWJM,
			String wenJianM) {
		super();
		this.id = id;
		this.caiGou = caiGou;
		this.xiangDuiLJ = xiangDuiLJ;
		this.ysWJM = ysWJM;
		this.wenJianM = wenJianM;
	}

	public HeTong() {
		super();
	}
}
